package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Tang
 * @date 2023/1/6
 */
@EnableTransactionManagement    //开启事务管理
@ServletComponentScan           //作用：可以让过滤通过@WebFileter自动注册到spring容器中
@MapperScan("com.itheima.dao")  //扫描com.itheima.dao包下的所有接口
@Slf4j  //lombok的注解，可以用来使用里面的log打印日志
@SpringBootApplication
public class ReggieApplication {
    public static void main(String[] args) {

        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动成功！");
    }
}
